import { FieldType } from '@/interface';

export default ({
  projectId,
  id,
}:{
projectId:string,
id:string,
}) :object => ({

  autoQuery: true,
  autoCreate: true,
  selection: false,
  paging: true,
  pageSize: 10,
  fields: [
    {
      name: 'id',
      type: 'string' as FieldType,
    },
    {
      name: 'appVersionTriggerEnable',
      type: 'string' as FieldType,
    },
    {
      name: 'name',
      type: 'string' as FieldType,
    },
    {
      name: 'pipelineScheduleList',
      type: 'object' as FieldType,
    },
    {
      name: 'stageList',
      type: 'onject' as FieldType,
    },

  ],
  transport: {
    read: {
      url: `/devops/v1/projects/${projectId}/pipelines/${id}`,
      method: 'get',
    },
  },
  events: {

  },
});
